'''
Created on 27 Feb 2013

@author: Paul Byrne
'''
from google.appengine.api import mail

import logging

def send_room_request_email(email_to, email_from): 
    sender = 'Admin at pleasesleephere <admin@pleasesleephere.appspotmail.com>' 
    subject = 'Room Request' 
    body = """Hi %s!
    %s has just sent you a message, wishing to book your room.
    Please login to your account to access your message.
    Do not reply to this email.
    Thanks, The Please Sleep Here Team.""" % (email_to, email_from)
    email_to = email_to + '@gmail.com'

    logging.info(sender) 
    logging.info(email_to) 
    logging.info(subject) 
    logging.info(body)

    mail.send_mail(sender, email_to, subject, body)